package com.wh.springboot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wh.springboot.common.entity.Vaccine;
import com.wh.springboot.mapper.VaccineMapper;
import com.wh.springboot.service.IVaccineService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author elsy
 * @since 2023-05-03
 */
@Service
public class VaccineServiceImpl extends ServiceImpl<VaccineMapper, Vaccine> implements IVaccineService {

    @Resource
    private VaccineMapper vaccineMapper;

    @Override
    public Page<Vaccine> findPage(Page<Vaccine> page,String username) {
        return vaccineMapper.findPage(page,username);
    }

    @Override
    public List<Vaccine> findByUserId(Integer userId) {
        return vaccineMapper.findByUserId(userId);
    }

}
